package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author junz123
 * @since 2018-04-19
 */
@TableName("bus_company_info")
public class CompanyInfo extends Model<CompanyInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 企业编号
     */
    @TableField("ID")
    private String id;
    /**
     * 企业名称
     */
    @TableField("COM_NAME")
    private String comName;
    /**
     * 企业logo
     */
    @TableField("COM_LOG_FILENAME")
    private String comLogFilename;
    /**
     * 定点生产企业证书
     */
    @TableField("COM_FPEC_NO")
    private String comFpecNo;
    /**
     * 定点生产企业证书有效期至
     */
    @TableField("COM_FPEC_VLD")
    private Date comFpecVld;
    /**
     * 定点生产企业证书类型
     */
    @TableField("COM_FPEC_TYPE")
    private String comFpecType;
    /**
     * 企业地址
     */
    @TableField("COM_ADDRESS")
    private String comAddress;
    /**
     * 客服热线
     */
    @TableField("COM_HOTLINE")
    private String comHotline;
    /**
     * 企业联系电话
     */
    @TableField("COM_PHONE")
    private String comPhone;
    /**
     * 企业网址
     */
    @TableField("COM_URL")
    private String comUrl;
    @TableField("STATUS")
    private Integer status;
    @TableField("CREATETIME")
    private Date createtime;
    @TableField("VERSION")
    private Integer version;
    /**
     * 维护人
     */
    @TableField("MAINTAINER")
    private String maintainer;
    @TableField("DEL_FLAG")
    private Integer delFlag;

    public CompanyInfo() {
    }

    public CompanyInfo(CompanyDto companyDto) {
        this.id = String.valueOf(companyDto.getId());
        this.comName = companyDto.getFullname();
        this.comLogFilename = companyDto.getComLogFilename();
        this.comFpecNo = companyDto.getComFpecNo();
        this.comFpecVld = companyDto.getComFpecVld();
        this.comFpecType = companyDto.getComFpecType();
        this.comAddress = companyDto.getComAddress();
        this.comHotline = companyDto.getComHotline();
        this.comPhone = companyDto.getComPhone();
        this.comUrl = companyDto.getComUrl();
        this.maintainer = companyDto.getMaintainer();
        this.delFlag=0;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getComLogFilename() {
        return comLogFilename;
    }

    public void setComLogFilename(String comLogFilename) {
        this.comLogFilename = comLogFilename;
    }

    public String getComFpecNo() {
        return comFpecNo;
    }

    public void setComFpecNo(String comFpecNo) {
        this.comFpecNo = comFpecNo;
    }

    public Date getComFpecVld() {
        return comFpecVld;
    }

    public void setComFpecVld(Date comFpecVld) {
        this.comFpecVld = comFpecVld;
    }

    public String getComFpecType() {
        return comFpecType;
    }

    public void setComFpecType(String comFpecType) {
        this.comFpecType = comFpecType;
    }

    public String getComAddress() {
        return comAddress;
    }

    public void setComAddress(String comAddress) {
        this.comAddress = comAddress;
    }

    public String getComHotline() {
        return comHotline;
    }

    public void setComHotline(String comHotline) {
        this.comHotline = comHotline;
    }

    public String getComPhone() {
        return comPhone;
    }

    public void setComPhone(String comPhone) {
        this.comPhone = comPhone;
    }

    public String getComUrl() {
        return comUrl;
    }

    public void setComUrl(String comUrl) {
        this.comUrl = comUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getMaintainer() {
        return maintainer;
    }

    public void setMaintainer(String maintainer) {
        this.maintainer = maintainer;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CompanyInfo{" +
        "id=" + id +
        ", comName=" + comName +
        ", comLogFilename=" + comLogFilename +
        ", comFpecNo=" + comFpecNo +
        ", comFpecVld=" + comFpecVld +
        ", comFpecType=" + comFpecType +
        ", comAddress=" + comAddress +
        ", comHotline=" + comHotline +
        ", comPhone=" + comPhone +
        ", comUrl=" + comUrl +
        ", status=" + status +
        ", createtime=" + createtime +
        ", version=" + version +
        ", maintainer=" + maintainer +
        ", delFlag=" + delFlag +
        "}";
    }
}
